package com.hulk.ratel.common.constant.enums;

import com.google.common.base.Objects;
import lombok.AllArgsConstructor;
import lombok.Getter;

@Getter
@AllArgsConstructor
public enum ArchivedFlag {
	
	N("N", "未归档"),
	Y("Y", "已归档");
 	
	private String value;

	private String desc;



	public static String explain(String value) {
		for (ArchivedFlag obj : ArchivedFlag.values()) {
			if (Objects.equal(value, obj.value)) {
				return obj.desc;
			}
		}
		return value;
	}
	


}
